import time


def getTime(fn):
    def inner():
        start = time.time()
        fn()
        end = time.time()
        print("执行使用时间%f" % (end - start))

    return inner


@getTime
def funTime():
    print("开始执行了...")
    for i in range(10000):
        print(i)


funTime()
